package ink.metoo.auto.fishpi.chatroom.handler

import ink.metoo.auto.fishpi.chatroom.ChatRooms
import ink.metoo.auto.fishpi.chatroom.Message

class DiscussChangedTypeHandler : TypeHandler {

    override val type: Message.Type = Message.Type.DISCUSS_CHANGED

    override fun handle(text: String, message: Message) {
        ChatRooms.discussing = message.newDiscuss
        ChatRooms.systemConsole(message, "${message.whoChanged} 将话题变更为 ${message.newDiscuss}")
    }
}